package com.jade.shoesmallinterface.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserAddress {
    // id
    private Integer id;
    private Integer userId;
    // 地址类型
    private String addressType;
    // 收件人姓名
    private String username;
    // 联系方式
    private String userPhone;
    // 详细地址
    private String addressDetail;
    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    // 更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
